public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(1);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(3);
        myLinkedList.addFirst(4);
        myLinkedList.addFirst(5);
        myLinkedList.addFirst(5);
        myLinkedList.addFirst(5);
        myLinkedList.display();
        myLinkedList.addLast(6);
        myLinkedList.display();
        myLinkedList.addIndex(3,12);
        myLinkedList.addIndex(0,12);
        myLinkedList.display();
        System.out.println("删除第一次出现的结点3");
        myLinkedList.remove(3);
        myLinkedList.display();
        myLinkedList.removeAllKey(5);
        myLinkedList.display();
    }
}
